for i in 2 4 6 8 10 
do
    mpirun -np ${i} ./a.out
    wait
done